<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改密码 - {dede:global.cfg_webname/}</title>
<link href="../../img/css.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../../img/js/all.js"></script>
<script language="javascript" src="../../img/js/cookie.js"></script>
<script language="javascript" src="../../img/js/Calendar.js"></script>
<script language="javascript" src="../../img/js/manage.js"></script>


<script language="javascript"> 
HtmlInitFuc(function(){
	InitForm( "formEditPass" , "inputb_hover" );
});
 
manageWhere = manageNav["passwd"];
function checkNewPasswd(){
	if(document.getElementById("newPasswd").value.length>0){
		if(document.getElementById("newPasswd").value.length<4){
			alert("新密码填写错误(至少4位)");
			return false;
		}	
		return true; //暂时未加		
	}else{
		alert("请输入您的新密码");  
		return false; 		
	}
	return true;
}
 
function checkRePasswd(){
	if(document.getElementById("rePasswd").value!=document.getElementById("newPasswd").value || document.getElementById("rePasswd").value==""){
		alert("两次密码输入不同");
		return false;
	}
	return true; //暂时未加
}
 
function checkOldPasswd(){
	if(document.getElementById("oldPasswd").value.length>0){
		if(document.getElementById("oldPasswd").value.length<4){
			alert("旧密码填写错误(至少4位)");
			return false;
		}	
		return true; //暂时未加		
	}else{
		alert("请输入您的原有密码");	  
	 	return false; //暂时未加
 	}
	return true;
}
 
function verify(){
	if(!checkOldPasswd()){
		document.getElementById("oldPasswd").select();
		document.getElementById("oldPasswd").focus(); 
		return false;
	}
	if(!checkNewPasswd()){
		document.getElementById("newPasswd").select();
		document.getElementById("newPasswd").focus(); 
		return false;
	}
	if(!checkRePasswd()){
		document.getElementById("rePasswd").select();
		document.getElementById("rePasswd").focus(); 
		return false;
	}
	return true;
}
</script>



</head>
 
<body>
<!--Head-->
<script language="javascript" type="text/javascript" src="/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript">
function CheckLogin(){
	  var taget_obj = document.getElementById('_ajax_feedback');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_feedback.php");
	  DedeXHTTP = null;
}
function Check_head_Login(){
	  var taget_obj = document.getElementById('_Check_head_Login');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_head.php");
	  DedeXHTTP = null;
}
function CheckLogin_index(){
	  var taget_obj = document.getElementById('_login_index');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/users/ajax_index.php");
	  DedeXHTTP = null;
}
</script>
<?php
   pasterTempletDiy("default/head_index.htm");
?>
<!--Head_end-->
<div id="wz">&nbsp;&nbsp;&nbsp;您当前所在的位置： <a href="/">网站首页</a> » <a href="/users/index.php">会员中心首页</a> » 修改个人资料</div>
<!--Main-->
<div id="page">
  <?php include(DEDEMEMBER."/templets/left.htm"); ?>
 <div id="uright">
  <div id="urtitle"></span><strong>修改密码</strong></div>
  <div id="urborder">
	<form name="vbform1" action="edit_pwd.php" id="formEditPass" name="formEditPass" method="post" onsubmit="return verify()">
    <input type="hidden" name="dopost" value="save" />
    <ul id="urinput">
     <li><span><em>*</em>旧的密码：</span><input name="oldPasswd" type="password" id="oldPasswd"  maxlength="14" title="请输入您的旧的密码" class="inputb" /></li>
     <li><span><em>*</em>新的密码：</span>
       <input name="newPasswd" type="password" id="newPasswd"  maxlength="14" title="请输入您的新的密码" class="inputb" /></li>
     <li><span><em>*</em>确认新密码：</span>
       <input name="rePasswd" type="password" id="rePasswd"  maxlength="14" title="请您再一次输入您的新密码" class="inputb" />
     <div><input type="submit" value=" 修 改 " class="inputc" /></div></li>
     </ul>
	</form>
</div>

  </div>
</div>
<!--Main_end-->

<?php
   pasterTempletDiy("default/footer.htm");
?>

<!--Footer_end-->
</body>
</html>